Software Development
Building Web Apps Using Flask in Python
Flask in Python: An Introduction to Web Frameworks & Flask
Flask in Python: Building a Simple Web Site Using Flask
Flask in Python: User Authentication in a Flask Application
Flask in Python: User Interactions in Flask Applications

Flask in Python: An Introduction to Web Frameworks & Flask

Course Number:
it_pybwafdj_01_enus
Lesson Objectives

Flask in Python: An Introduction to Web Frameworks & Flask

  • discover the key concepts covered in this course
  • describe the steps involved in a web request and the role of web applications in the process
  • recognize the various pieces that can make up a web applications and the role of web frameworks in defining them
  • recall the features of the Flask framework that are available either out of the box or via extensions
  • describe the roles of routes in a Flask application and the options available when defining a route function
  • recognize the need for templates when defining a web site and describe the use of Jinja for this purpose
  • identify some of the commonly used extensions in Flask applications and recall the purpose they serve
  • summarize the key concepts covered in this course

Overview/Description

Explore the steps involved in building a web application and how using a web framework can help with the process. Examine the features of the Flask framework that help to simplify the creation of a web site, including Flask routes, templates, and extensions.



Target

Prerequisites: none

Flask in Python: Building a Simple Web Site Using Flask

Course Number:
it_pybwafdj_02_enus
Lesson Objectives

Flask in Python: Building a Simple Web Site Using Flask

  • discover the key concepts covered in this course
  • install Flask in a virtual environment on your development machine
  • write the code for a simple "Hello World" web site using Flask
  • recognize how route definitions can be altered and the benefits of running your Flask app in debug mode
  • define a route that renders an HTML page when a URL is accessed
  • download and use some boilerplate HTML files so that your web site definition need not begin from scratch
  • modify the boilerplate CSS and HTML definitions to customize the look of a web site
  • generate URLs dynamically using the url_for function
  • create a base template that can be inherited by other templates, along with placeholders that can be overridden
  • inherit the elements from a base template in a child template HTML file
  • define multiple routes to point to the same route function
  • summarize the key concepts covered in this course

Overview/Description

Discover how to install Flask in a virtual environment and create a "Hello World" web site using Flask. Explore the use of routes, boilerplate sources, and template definitions using Jinja to build a site efficiently and in a manner that is easy-to-maintain.



Target

Prerequisites: none

Flask in Python: User Authentication in a Flask Application

Course Number:
it_pybwafdj_04_enus
Lesson Objectives

Flask in Python: User Authentication in a Flask Application

  • discover the key concepts covered in this course
  • install SQL Alchemy and use it to connect the Flask application to a SQLite database
  • use SQL Alchemy to generate relational database tables for each model defined in your application
  • execute queries against tables using a SQLAlchemy model
  • separate the model definitions, routes, and app initialization into separate files that are easier to maintain
  • modify the import statements to account for the restructuring of the Flask app and test that the functionality has not been affected
  • use the Bcrypt package to generate hashes of passwords so that they can be stored securely
  • create a bespoke validator for fields in your WTForms
  • install and use a Flask extension to allow users to login to your Flask app and maintain a login session
  • implement the logout feature so that users can sign out of a Flask app
  • access and display the three most recent reviews posted on your Flask web site
  • test that the feedback display functionality implemented works as expected
  • configure your Flask web site to display images loaded from the app's static resources
  • summarize the key concepts covered in this course

Overview/Description

Discover how to integrate a SQLite database with a Flask application and how to use the database and the flask-login extension to implement user authentication and sessions. Explore how to display web site reviews, test feedback functionality, and use images in a web site.



Target

Prerequisites: none

Flask in Python: User Interactions in Flask Applications

Course Number:
it_pybwafdj_03_enus
Lesson Objectives

Flask in Python: User Interactions in Flask Applications

  • discover the key concepts covered in this course
  • serve a custom error page whenever a 404 error is invoked on your web site
  • configure a route in your Flask app so that POST requests can be submitted to it
  • use the Flask debugger to record information in your application's log
  • convey the invocation of an operation to end users using message flashing
  • highlight flashed messages by defining a style for them in a CSS file
  • install and use WTForms in your Flask application to accept user input for registration
  • define a login page using field definitions and built-in validators available in WTForms
  • include the two pages defined using WTForms in the Flask application
  • invoke the validators defined for WTForm elements to ensure that the user input is in the correct form
  • ensure that all the built-in validators applied on the WTForm elements work as they are expected to
  • summarize the key concepts covered in this course

Overview/Description

Discover how to handle errors in Flask, enable POST requests on a route, and log information for a Flask application. Examine the features of message flashing and how to style them. Explore how to configure and customize the acceptance of user input on web sites using the WTForms library.



Target

Prerequisites: none

Close Chat Live